﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO_QLNS;

namespace ADO_QLNS
{
    public class RatingADO : QLNS_ADO
    {
        RatingDTO _DTO;

        public override string InsertString(TransferObject dto)
        {
            _DTO = (RatingDTO)dto;
            String sql = "Insert into Rating(BookID, CustomerID, Rating) values ({0},{1},{2})";
            return String.Format(sql, _DTO.BookID, _DTO.CustomerID, _DTO.RatingID);
        }

        public override string UpdateString(TransferObject dto)
        {
            throw new NotImplementedException();
        }

        public override string DeleteString(TransferObject dto)
        {
            throw new NotImplementedException();
        }

        protected override object GetDataFromDataRow(System.Data.DataTable dt, int i)
        {
            throw new NotImplementedException();
        }
    }
}
